<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once BASE_PATH.'application/controllers/base'.EXT;

class curso extends Base {
	
       public function __construct()
       {
            parent::__construct();
	    $this->load->model("cursodao");

       }
       
       
	public function index($id)
	{
	      $curso = $this->cursodao->_findById($id);
	      
	      if(count($curso) == 0)
		     redirect(BASE_URL);
	      
	      $data = array(
			    "title"  	  => "Curso",
			    "subtitle" 	  => "",
			    "description" => "",
			    "keywords" 	  => "",
			    
			    "curso"	  => $curso
			    );
	      $this->load->view('curso/curso',$data);
	      
	      
	      
	}
	
       public function imagen($id = 1, $size = '') {
	      
	      $path = "../Pruebas/intranet/portal/backend/ImgCurso/".$id.".png";   
	      parent::imagen($path,$size);
       }
       
}